<?php
namespace app\index\controller;

use app\common\controller\Frontend;
use think\Session;
use think\helper\Time;
use app\admin\model\QuesStudent;
use app\admin\model\Student;
use app\admin\model\QuesTeacher;
use app\admin\model\Teacher;
use app\admin\model\User;

class Wxdemo extends Form
{
    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';
    protected $model = null;
    protected $re_model = null;


    public function _initialize()
    {

        parent::_initialize();

    }

    public function index()
    {
        $url = 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
        $this -> app->jssdk->setUrl($url);
        $wxjs = $this -> app->jssdk->buildConfig(array('getLocation'), true);
        var_dump($wxjs);
        $this -> assign('wxjs',$wxjs);
        return $this->view->fetch();
    }
}
